package com.traffic.fuwu.service;

import java.util.List;
import java.util.Map;


import com.traffic.fuwu.mybatis.pojo.Account;
import com.traffic.fuwu.mybatis.pojo.AlipayEnterpriseAccount;
import com.traffic.fuwu.mybatis.pojo.Company;
import com.traffic.fuwu.mybatis.pojo.Sftp;

public interface CompanyService {
    /*
     * 多条件分页查询
     */
    List<Company> getFindCompany(String comName, String comAddress, String appKey, int startRow, int pageSize);

    int getFindCompanyCount(String comName, String comAddress, String appKey);

    List<Map<String, Object>> getFindCom(String comName, String comAddress,
                                         String comCode, int startRow, int pageSize);

    int getFindComCount(String comName, String comAddress,
                        String comCode);

    Map<String, Object> getById(int comId);

    void addCompany(Company company, Sftp sftp, Account account, AlipayEnterpriseAccount alipayEnterpriseAccount);

    Company getUpdateById(int comId);

    void updateCompany(Company company);

    void updateSftp(Sftp sftp);

    void updateAccount(Account account);

    void deleteCompany(int comId);

    void deleteSftp(int sftpId);

    void deleteAccount(int accountId);
}
